<!DOCTYPE html>
<!--
  Copyright 2010 Google Inc.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

  Original slides: Marcin Wichary (mwichary@google.com)
  Modifications: Ernest Delgado (ernestd@google.com)
                 Alex Russell (slightlyoff@chromium.org)

  landslide modifications: Adam Zapletal (adamzap@gmail.com)
                           Nicolas Perriault (nperriault@gmail.com)
-->
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="chrome=1">
    <title>docker学习第二弹</title>
    <!-- Styles -->
    
    <link rel="stylesheet" media="print" href="file://c:\python27\lib\site-packages\landslide\themes\default\css\print.css">
    <link rel="stylesheet" media="screen, projection" href="file://c:\python27\lib\site-packages\landslide\themes\default\css\screen.css">
    
    
    <!-- /Styles -->
    <!-- Javascripts -->
    
    <script type="text/javascript" src="file://c:\python27\lib\site-packages\landslide\themes\default\js\slides.js"></script>
    
    
    
    <!-- /Javascripts -->
</head>
<body>
  <div id="blank"></div>
  <div class="presentation">
    <div id="current_presenter_notes">
      <div id="presenter_note"></div>
    </div>
    <div class="slides">
      
      <!-- slide source: dockerRegistry.md -->
      <div class="slide-wrapper">
        <div class="slide slide-1">
          <div class="inner">
            
            <header><h1>docker学习第二弹</h1></header>
            
            
            <section><h3>docker 仓库</h3></section>
            
          </div>
          <div class="presenter_notes">
            <header><h1>Presenter Notes</h1></header>
            <section>
            
            </section>
          </div>
          <footer>
            
            <aside class="source">
              Source: <a href="dockerRegistry.md">dockerRegistry.md</a>
            </aside>
            
            <aside class="page_number">
              1/10
            </aside>
          </footer>
        </div>
      </div>
      
      <!-- slide source: dockerRegistry.md -->
      <div class="slide-wrapper">
        <div class="slide slide-2">
          <div class="inner">
            
            <header><h1>公共仓库</h1></header>
            
            
            <section><ul>
<li>
<p>docker官方库</p>
<ul>
<li>地址：https://hub.docker.com</li>
</ul>
</li>
<li>
<p>阿里云仓库</p>
<ul>
<li>地址：https://dev.aliyun.com/search.html</li>
</ul>
</li>
</ul></section>
            
          </div>
          <div class="presenter_notes">
            <header><h1>Presenter Notes</h1></header>
            <section>
            
            </section>
          </div>
          <footer>
            
            <aside class="source">
              Source: <a href="dockerRegistry.md">dockerRegistry.md</a>
            </aside>
            
            <aside class="page_number">
              2/10
            </aside>
          </footer>
        </div>
      </div>
      
      <!-- slide source: dockerRegistry.md -->
      <div class="slide-wrapper">
        <div class="slide slide-3">
          <div class="inner">
            
            <header><h1>创建阿里云镜像仓库</h1></header>
            
            
            <section><p><img alt="aa" src="https://gitee.com/he19920226he/dockermd/raw/master/_v_images/createdAliyun.png" /></p></section>
            
          </div>
          <div class="presenter_notes">
            <header><h1>Presenter Notes</h1></header>
            <section>
            
            </section>
          </div>
          <footer>
            
            <aside class="source">
              Source: <a href="dockerRegistry.md">dockerRegistry.md</a>
            </aside>
            
            <aside class="page_number">
              3/10
            </aside>
          </footer>
        </div>
      </div>
      
      <!-- slide source: dockerRegistry.md -->
      <div class="slide-wrapper">
        <div class="slide slide-4">
          <div class="inner">
            
            <header><h1>提交自己的镜像</h1></header>
            
            
            <section><ul>
<li>登陆阿里云镜像库<ul>
<li>sudo docker login --username=username registry.cn-shenzhen.aliyuncs.com</li>
</ul>
</li>
<li>打包容器<ul>
<li>docker commit -m="第一次打包镜像" 1d72c88e49cd registry.cn-shenzhen.aliyuncs.com/yuanshuai/docker-study:1.0</li>
<li>docker images</li>
</ul>
</li>
<li>提交镜像<ul>
<li>docker push registry.cn-shenzhen.aliyuncs.com/yuanshuai/docker-study:1.0</li>
</ul>
</li>
</ul></section>
            
          </div>
          <div class="presenter_notes">
            <header><h1>Presenter Notes</h1></header>
            <section>
            
            </section>
          </div>
          <footer>
            
            <aside class="source">
              Source: <a href="dockerRegistry.md">dockerRegistry.md</a>
            </aside>
            
            <aside class="page_number">
              4/10
            </aside>
          </footer>
        </div>
      </div>
      
      <!-- slide source: dockerRegistry.md -->
      <div class="slide-wrapper">
        <div class="slide slide-5">
          <div class="inner">
            
            <header><h1>查看提交的镜像</h1></header>
            
            
            <section><p><img alt="bbb" src="https://gitee.com/he19920226he/dockermd/raw/master/_v_images/version.png" /></p></section>
            
          </div>
          <div class="presenter_notes">
            <header><h1>Presenter Notes</h1></header>
            <section>
            
            </section>
          </div>
          <footer>
            
            <aside class="source">
              Source: <a href="dockerRegistry.md">dockerRegistry.md</a>
            </aside>
            
            <aside class="page_number">
              5/10
            </aside>
          </footer>
        </div>
      </div>
      
      <!-- slide source: dockerRegistry.md -->
      <div class="slide-wrapper">
        <div class="slide slide-6">
          <div class="inner">
            
            <header><h1>搭建自己的仓库</h1></header>
            
            
            <section><ul>
<li>关于Registry<ul>
<li>官方在Docker hub上提供了registry的镜像（详情），我们可以直接使用该registry镜像来构建一个容器，搭建我们自己的私有仓库服务。</li>
</ul>
</li>
<li>Registry的部署<ul>
<li>docker pull registry</li>
<li>docker run -d -p 5000:5000 --restart=always --name registry registry:latest</li>
<li>http://127.0.0.1:5000/v2/</li>
</ul>
</li>
</ul></section>
            
          </div>
          <div class="presenter_notes">
            <header><h1>Presenter Notes</h1></header>
            <section>
            
            </section>
          </div>
          <footer>
            
            <aside class="source">
              Source: <a href="dockerRegistry.md">dockerRegistry.md</a>
            </aside>
            
            <aside class="page_number">
              6/10
            </aside>
          </footer>
        </div>
      </div>
      
      <!-- slide source: dockerRegistry.md -->
      <div class="slide-wrapper">
        <div class="slide slide-7">
          <div class="inner">
            
            <header><h1>提交镜像到自己的仓库</h1></header>
            
            
            <section><pre><code>* docker commit -m='提交nginx到自己的镜像' 1d72c88e49cd 127.0.0.1:5000/registry:1.0 docker commit -m='提交nginx到自己的镜像' 1d72c88e49cd 127.0.0.1:5000/nginx:1.0
* docker push 127.0.0.1:5000/registry:1.0 docker push 127.0.0.1:5000/nginx:1.0
* http://127.0.0.1:5000/v2/_catalog
</code></pre></section>
            
          </div>
          <div class="presenter_notes">
            <header><h1>Presenter Notes</h1></header>
            <section>
            
            </section>
          </div>
          <footer>
            
            <aside class="source">
              Source: <a href="dockerRegistry.md">dockerRegistry.md</a>
            </aside>
            
            <aside class="page_number">
              7/10
            </aside>
          </footer>
        </div>
      </div>
      
      <!-- slide source: dockerRegistry.md -->
      <div class="slide-wrapper">
        <div class="slide slide-8">
          <div class="inner">
            
            <header><h1>结果展示</h1></header>
            
            
            <section><p><img alt="mingling" src="https://gitee.com/he19920226he/dockermd/raw/master/_v_images/mingling.png" /></p></section>
            
          </div>
          <div class="presenter_notes">
            <header><h1>Presenter Notes</h1></header>
            <section>
            
            </section>
          </div>
          <footer>
            
            <aside class="source">
              Source: <a href="dockerRegistry.md">dockerRegistry.md</a>
            </aside>
            
            <aside class="page_number">
              8/10
            </aside>
          </footer>
        </div>
      </div>
      
      <!-- slide source: dockerRegistry.md -->
      <div class="slide-wrapper">
        <div class="slide slide-9">
          <div class="inner">
            
            
            <section><p><img alt="jieguo" src="https://gitee.com/he19920226he/dockermd/raw/master/_v_images/web.png" /></p></section>
            
          </div>
          <div class="presenter_notes">
            <header><h1>Presenter Notes</h1></header>
            <section>
            
            </section>
          </div>
          <footer>
            
            <aside class="source">
              Source: <a href="dockerRegistry.md">dockerRegistry.md</a>
            </aside>
            
            <aside class="page_number">
              9/10
            </aside>
          </footer>
        </div>
      </div>
      
      <!-- slide source: dockerRegistry.md -->
      <div class="slide-wrapper">
        <div class="slide slide-10">
          <div class="inner">
            
            <header><h1>OVER</h1></header>
            
            
          </div>
          <div class="presenter_notes">
            <header><h1>Presenter Notes</h1></header>
            <section>
            
            </section>
          </div>
          <footer>
            
            <aside class="source">
              Source: <a href="dockerRegistry.md">dockerRegistry.md</a>
            </aside>
            
            <aside class="page_number">
              10/10
            </aside>
          </footer>
        </div>
      </div>
      
    </div>
  </div>
  
  <div id="toc" class="sidebar hidden">
    <h2>Table of Contents</h2>
    <table>
      <caption>Table of Contents</caption>
      
      <tr id="toc-row-1">
        <th><a href="#slide1">docker学习第二弹</a></th>
        <td><a href="#slide1">1</a></td>
      </tr>
      
      
      <tr id="toc-row-2">
        <th><a href="#slide2">公共仓库</a></th>
        <td><a href="#slide2">2</a></td>
      </tr>
      
      
      <tr id="toc-row-3">
        <th><a href="#slide3">创建阿里云镜像仓库</a></th>
        <td><a href="#slide3">3</a></td>
      </tr>
      
      
      <tr id="toc-row-4">
        <th><a href="#slide4">提交自己的镜像</a></th>
        <td><a href="#slide4">4</a></td>
      </tr>
      
      
      <tr id="toc-row-5">
        <th><a href="#slide5">查看提交的镜像</a></th>
        <td><a href="#slide5">5</a></td>
      </tr>
      
      
      <tr id="toc-row-6">
        <th><a href="#slide6">搭建自己的仓库</a></th>
        <td><a href="#slide6">6</a></td>
      </tr>
      
      
      <tr id="toc-row-7">
        <th><a href="#slide7">提交镜像到自己的仓库</a></th>
        <td><a href="#slide7">7</a></td>
      </tr>
      
      
      <tr id="toc-row-8">
        <th><a href="#slide8">结果展示</a></th>
        <td><a href="#slide8">8</a></td>
      </tr>
      
      
      <tr id="toc-row-9">
        <th><a href="#slide9">-</a></th>
        <td><a href="#slide9">9</a></td>
      </tr>
      
      
      <tr id="toc-row-10">
        <th><a href="#slide10">OVER</a></th>
        <td><a href="#slide10">10</a></td>
      </tr>
      
      
    </table>
  </div>
  
  <div id="help" class="sidebar hidden">
    <h2>Help</h2>
    <table>
      <caption>Help</caption>
      <tr>
        <th>Table of Contents</th>
        <td>t</td>
      </tr>
      <tr>
        <th>Exposé</th>
        <td>ESC</td>
      </tr>
      <tr>
        <th>Full screen slides</th>
        <td>e</td>
      </tr>
      <tr>
        <th>Presenter View</th>
        <td>p</td>
      </tr>
      <tr>
        <th>Source Files</th>
        <td>s</td>
      </tr>
      <tr>
        <th>Slide Numbers</th>
        <td>n</td>
      </tr>
      <tr>
        <th>Toggle screen blanking</th>
        <td>b</td>
      </tr>
      <tr>
        <th>Show/hide slide context</th>
        <td>c</td>
      </tr>
      <tr>
        <th>Notes</th>
        <td>2</td>
      </tr>
      <tr>
        <th>Help</th>
        <td>h</td>
      </tr>
    </table>
  </div>
  <script>main()</script>
</body>
</html>